package com.gugee.ins.common.dal.service.mark.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.gugee.ins.common.dal.mapper.mark.InsMarkBloggerBgsMonthMapper;
import com.gugee.ins.common.dal.service.mark.InsMarkBloggerBgsMonthDao;
import com.gugee.ins.common.model.mysql.mark.InsMarkBloggerBgsMonth;
import org.springframework.stereotype.Service;

/**
 * <p>
 * ins 带货达人月打点统计表 服务实现类
 * </p>
 *
 * @author HuangXin
 * @since 2021-04-07
 */
@Service
public class InsMarkBloggerBgsMonthDaoImpl extends ServiceImpl<InsMarkBloggerBgsMonthMapper, InsMarkBloggerBgsMonth> implements InsMarkBloggerBgsMonthDao {

    /**
     * 月打点
     * @param startId
     * @param endId
     * @param limitTimeStart
     * @param limitTimeEnd
     * @param dateCode
     */
    @Override
    public void insertMark(long startId, long endId, long limitTimeStart, long limitTimeEnd, int dateCode) {
        baseMapper.insertMark(startId, endId, limitTimeStart, limitTimeEnd, dateCode, System.currentTimeMillis() / 1000);
    }

    /**
     * 删除数据
     * @param dateCode
     */
    @Override
    public void deleteByDateCode(int dateCode) {
        baseMapper.deleteByDateCode(dateCode);
    }
}
